package com.ca.project.Server.Modules.TweetsImg.Entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

/**
 * 
 * @TableName tweets_img
 */
@TableName(value ="tweets_img")
@Data
public class TweetsImg implements Serializable {
    /**
     * 推文图片上传id
     */
    @TableId(value = "t_img_id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long tImgId;

    /**
     * 推文图片上传用户
     */
    @TableField(value = "t_update_user")
    private String tUpdateUser;

    /**
     * 推文名称
     */
    @TableField(value = "t_title")
    private String tTitle;

    /**
     * 图片名称
     */
    @TableField(value = "t_img_name")
    private String tImgName;

    /**
     * 图片的key值
     */
    @TableField(value = "t_img_key")
    private String tImgKey;

    /**
     * 推文图片上传url
     */
    @TableField(value = "url")
    private String url;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}